home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
printing
/
cdprnt15.arc
/
CDPRNT15.TXT
next >
Wrap
Text File
|
1992-04-01
|
6KB
|
154 lines
Code Print v1.5
=================
By Kenneth Hartlen
March 24,1992
Code Print v1.5 prints a text file in two columns on a page.
The first column will have lines 1 to 58 and the second column
will have lines 59 to 116. The top of each page has a header that
contains the filename, date printed and page numbers. Code Print
v1.5 takes advantage of the 20cpi capability of the new printers,
like my Panasonic KX-P1124, which allows 160 characters per line
on a narrow carriage printer.
The main reason I wrote this program was to save paper when
printing source code during program debugging, sample programs
and for infrequently used documentation.
Friends expressed an interest in this utility, so I thought
I'd share it with others. I wrote the program in C and the ST
version was compiled using Lattice C v5.06 and the PC version was
compiled using Turbo C v2.0.
CDPRNT15.ARC
==============
The archive file CDPRNT15.ARC contains the required files
for using Code Print v1.5 on an Atari ST or an PC compatible
computer.
CODEPRNT.TTP The ST version of the Code Print v1.5 program. Run
from GEM, NeoDesk or a CLI.
CODEPRNT.EXE The PC version of the Code Print v1.5 program, run
from MS-DOS.
CODEPRNT.CFG The printer configuration file.
LQ2500.CFG Configuration file for Epson LQ2500 printer.
CDPRNT15.TXT This file.
CODEPRNT.NIC NeoDesk v3.02 icon file containing an icon for the
ST version of the Code Print v1.5 program.
If any of these files are missing, the original CDPRNT15.ARC
file has be tampered with. Please locate a complete CDPRNT15.ARC
file. The .CFG files are used by both the ST and PC versions of
Code Print v1.5.
The Program
=============
To run the program on an ST, simply double-click the
CODEPRNT.TTP icon in GEM or NeoDesk. Since the program is a
.TTP, you will be prompted for parameters. When run from a CLI on
a ST or from MS-DOS on a PC, you must specify the parameters. The
program usage is: codeprnt [-ldstn] file
Here is a list of legal options:
-l use letter quality font
-d use draft quality font (*)
-s suppress progress messages
-tn user defined tab size of n=0..9 (* n=8)
file user specified path and filename
Note: (*) indicates the default options used when para-
meters are not specified.
Code Print v1.5 will return one of three exit codes:
0: the program terminated normally.
-1: an illegal parameter was encountered or the printer is
not ready. (Note: The PC version looks for a printer on
the LPT1 port).
-33: the file was not found.
When printing a text file containing lines longer than 80
characters, Code Print v1.5 will use as many lines as necessary
and will not truncate any line. The -tn option was included for
printing files with unusual tab settings. Code Print v1.5 substi-
tutes imbedded tabs with spaces so the text can be formatted
properly before printing. A tab setting of 8 is the default.
The Configuration File
=========================
Since each model of printer will have different setup codes,
the Code Print v1.5 program reads a configuration file called
CODEPRNT.CFG which must contain the control codes for your
printer. If CODEPRNT.CFG can not be found then Epson LQ2500
defaults will be used. I've supplied a configuration file for the
Epson LQ2500 and you can easily create your own if necessary.
The CODEPRNT.CFG file must have the following format and can
be modified using any text editor.
Line 1: Code Print Printer Configuration Codes, Epson LQ2500
Line 2: 003 027 077 015 /* 20cpi */
Line 3: 003 027 120 001 /* letter quality font */
Line 4: 001 012 /* printer form feed */
Line 5: 002 027 064 /* printer reset */
Line 1: Simply holds a comment for your purposes and is ignored
by the Code Print v1.5 program.
Line 2-5: These lines contain the printer codes that your printer
recognizes. The first number is the number of values
that follow. Then up to 10 control values, separated by
spaces, will be read. Again a comment for your purposes
at the end of the line is ignored.
If Code Print v1.5 is not changing the cpi setting on your
printer, check to make sure your printer is set so it is
accepting software control codes.
Disclaimer and Notes
======================
Code Print v1.5 is FREEWARE, meaning CDPRNT15.ARC can be
distributed freely (unmodified) and there is no cost to own a
copy. Code Print v1.5 is provided AS IS. I make no warranties,
either expressed or implied, with respect to the software, its
quality, performance, or fitness. I will not be liable for
direct, indirect, or consequential damages resulting from any
defects in the software.
Having said the that, I hope you find Code Print v1.5 as
useful as I do.
Now you won't waste as much precious (expensive) paper when
debugging that stubborn program, reviewing sample programs or
printing endless pages of user documentation.
Suggestions to improve Code Print v1.5, or if any bugs are
encountered, or if you'd like to send $ (yeah, right!) can be
reported to myself:
Kenneth W. Hartlen
Box 37, Site 6, RR#3
Armdale, Nova Scotia
Canada B3L-4J3
Please send a self-addressed stamped envelope if you would
like me to reply.
I can also be reached by e-mail (until the university
realizes I've graduated) at my Internet addresses:
hartlenk@newton.ccs.tuns.ca
or hartlenkw@watt.ccs.tuns.ca